﻿<UserControl x:Class="FullDuplexTest.Silverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
            <RowDefinition MinHeight="30" Height="auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition />
            <ColumnDefinition Width="auto" />
        </Grid.ColumnDefinitions>
        <TextBlock Text="Username:" TextWrapping="Wrap" VerticalAlignment="Center"/>
        <TextBox x:Name="Username" Grid.Column="1" Grid.ColumnSpan="2" />
        <Border Grid.ColumnSpan="3" Grid.Row="1" BorderBrush="Gray">
            <ListBox x:Name="ChatHistory" />
        </Border>
        <TextBlock Text="Message:" Grid.Row="2" TextWrapping="Wrap" VerticalAlignment="Center"/>
        <TextBox x:Name="Message" Grid.Column="1" Grid.Row="2" KeyUp="MessageKeyUp" TextWrapping="Wrap" />
        <Button Content="Send" Grid.Column="2" Grid.Row="2" Click="ButtonClick" />
    </Grid>
</UserControl>
